﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entities
{
    public class InterviewRunResultData
    {
        public int InterviewID { get; set; }
        public int UserID { get; set; }
        public List<QuestionRunResultData> QuestionResults { get; set; }

        public InterviewRunResultData(int interv_id, int user_id, List<QuestionRunResultData> q_results)
        {
            if (user_id < 0 || q_results == null)
            {
                throw new ArgumentNullException();
            }
            if (q_results.Count == 0)
            {
                throw new ArgumentNullException();
            }
            this.InterviewID = interv_id;
            this.UserID = user_id;
            this.QuestionResults = q_results;
        }

        public InterviewRunResultData()
        {
        }
    }
}
